package ${domain.packageName};

import lombok.Builder;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

<#if domain.imports??>
    <#list domain.imports as item>
    import ${item};
    </#list>
</#if>
/**
* ${(domain.comment)!}
*
* @author: ${domain.author}
* @version: 1.0
* @datetime: ${domain.datetime}
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ${domain.className!} <#if domain.keys?? && domain.keys?size gt 1 >extends ${domain.className!}Key</#if> {

<#if domain.keys??>
    <#if domain.keys?size == 1 >
    // ${domain.keys[0].comment!}
    private ${domain.keys[0].type!} ${domain.keys[0].name!};
    </#if>
</#if>
<#if domain.columns??>
    <#list domain.columns as item>
    // ${item.comment!}
    private ${item.type!} ${item.name!};
    </#list>
</#if>
}
